home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Graphics / sKulpt / skulpt-src / Proto.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-30  |  6.7 KB  |  185 lines

  1. // Prototypes de d3dmisc.cpp
  2. HRESULT hrPreInitD3D(void);
  3. HRESULT hrInitD3D(HWND hWnd, const GUID* pDeviceGUID);
  4. HRESULT hrCloseD3D(BOOL bFull);
  5. HRESULT hrShowFrame(void);
  6. HRESULT hrRestoreSurfaces(void);
  7. VOID    vOnMove(int x, int y);
  8. HRESULT hrRender3DEnvironment(void);
  9.  
  10. // Prototypes de Render.cpp
  11. void    vSetD3DState(void);
  12. HRESULT hrInitWorld( LPDIRECT3DDEVICE7 pd3dDevice );
  13. HRESULT hrRender( LPDIRECT3DDEVICE7 pd3dDevice );
  14.  
  15. // Prototypes de menuwproc.cpp
  16. LRESULT CALLBACK lrMenuWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  17. void    vUpdateMenu(void);
  18. void    vRemakeTriview(LPARAM);
  19.  
  20. // Prototypes de 3dwproc.cpp
  21. LRESULT CALLBACK lrPerspWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  22. void    vForce3DRefresh(BOOL bFull);
  23.  
  24. // Prototypes de 2dwproc.cpp
  25. LRESULT CALLBACK lrPlanarWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  26. void    vForce2DRefresh(BOOL bFull);
  27.  
  28. // Prototypes de logo.cpp
  29. void    vLogo(void);
  30.  
  31. // Prototypes de winstuff.c
  32. void    vTrace(char *Str, ...);
  33. BOOL    bPrepareGadgets(void);
  34. void    vEraseGadgets(void);
  35.  
  36. // Prototypes de file-open-sculpt.cpp
  37. void    vLoadSculpt(void);
  38. void    vSaveSculpt(void);
  39.  
  40. // Prototypes de file-bin.cpp
  41. void    vSaveBin(void);
  42. void    vLoadBin(void);
  43.  
  44. // Prototypes de file-directx.cpp
  45. void    vSaveDirectX(void);
  46. void    vLoadDirectX(void);
  47.  
  48. // prototypes de dialogs.cpp
  49. BOOL CALLBACK bGlobLightDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  50. BOOL CALLBACK bSphereDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  51. BOOL CALLBACK bFaceDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  52. BOOL CALLBACK bExpandDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  53. BOOL CALLBACK bHelixDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  54. BOOL CALLBACK bHoleDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  55. BOOL CALLBACK bStringDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  56.  
  57. // Prototypes de BaseObjects.cpp
  58. BOOL    bSameMaterial(D3DMATERIAL7 *hMtrl1, D3DMATERIAL7 *hMtrl2);
  59. int     iFindMaterial(D3DMATERIAL7 *hMtrl, int iPrevious);
  60. BOOL    bTextureMaterial(int iMtrl, char *sTexName);
  61. int     iFastMaterial(char *sName, unsigned char bRouge, unsigned char bVert, unsigned char bBleu);
  62. int     iMakeMaterial(D3DMATERIAL7 *hMtrl, char *sName, BOOL bSame);
  63. BOOL    bDeleteMaterial(int iMtrl);
  64.  
  65. int     iFindVertex(D3DVECTOR p, int iPrevious);
  66. int     iMakeVertex(D3DVECTOR p, BOOL bSame);
  67. BOOL    bVertInEdge(int iVert, int iEdge);
  68. BOOL    bVertInTriangle(int iVert, int iTriangle);
  69. BOOL    bIsVertexSelected(int iVertex);
  70. int     iEdgesPerVert(int iVert);
  71. int     iTrianglesPerVert(int iVert);
  72. BOOL    bDeleteVertex(int iCnt);
  73. #ifndef _AMIGA_
  74. BOOL    bSmoothNorm(int iVertex);
  75. #endif
  76.  
  77. int     iFindEdge(int i1, int i2);
  78. int     iMakeEdge(int i1, int i2);
  79. BOOL    bDeleteEdge(int iCnt);
  80. BOOL    bIsEdgeSelected(int iTriangle);
  81. BOOL    bIsEdgePartiallySelected(int iTriangle);
  82.  
  83. int     iFindTriangle(int i1, int i2, int i3);
  84. int     iMakeTriangle(int i1, int i2, int i3, int iMtrl); // unsigned char bRouge, unsigned char bVert, unsigned char bBleu);
  85. BOOL    bSetUV(int iTriangle, int u1, int v1, int u2, int v2, int u3, int v3);
  86. BOOL    bDeleteTriangle(int iCnt);
  87. #ifndef _AMIGA_
  88. BOOL    bUpdateD3DTri(int iCnt);
  89. #endif
  90.  
  91. BOOL    bSubdivideTriangle(int iTriangle);
  92. BOOL    bIsTriangleSelected(int iTriangle);
  93. BOOL    bIsTrianglePartiallySelected(int iTriangle);
  94.  
  95. int iFindLamp(D3DVECTOR p, int iPrevious);
  96. int iMakeLamp(
  97.     D3DLIGHTTYPE    dltType,            /* Type of light source */
  98.     D3DCOLORVALUE   dcvDiffuse,         /* Diffuse color of light */
  99.     D3DCOLORVALUE   dcvSpecular,        /* Specular color of light */
  100.     D3DCOLORVALUE   dcvAmbient,         /* Ambient color of light */
  101.     D3DVECTOR       dvPosition,         /* Position in world space */
  102.     D3DVECTOR       dvDirection,        /* Direction in world space */
  103.     D3DVALUE        dvRange,            /* Cutoff range */
  104.     D3DVALUE        dvFalloff,          /* Falloff */
  105.     D3DVALUE        dvAttenuation0,     /* Constant attenuation */
  106.     D3DVALUE        dvAttenuation1,     /* Linear attenuation */
  107.     D3DVALUE        dvAttenuation2,     /* Quadratic attenuation */
  108.     D3DVALUE        dvTheta,            /* Inner angle of spotlight cone */
  109.     D3DVALUE        dvPhi               /* Outer angle of spotlight cone */
  110. );
  111. BOOL    bUpdateLamp(int iLamp);
  112. BOOL    bDeleteLamp(int iLamp);
  113.  
  114. void    vResetProcess(void);
  115. void    vDeleteObjects(void);
  116. void    vPropagateSelection();
  117. BOOL    bCloneSelection(D3DVECTOR vShift, BOOL bCloneMode);
  118. void    vHideSelection(void);
  119. void    vRevealHidden(void);
  120. D3DVECTOR vCenter(void);
  121. void    vCollect(void);
  122.  
  123. // prototypes de GeomObjects.cpp
  124. void    vAddSphere(D3DVECTOR vCenter, float r, int horiz, int vert, BOOL bHalf);
  125. void    vAddBoing(D3DVECTOR vCenter, float r);
  126. void    vAddTorus(D3DVECTOR vCenter, float R, float r, int n, int m);
  127. void    vAddDisk(D3DVECTOR vCenter, float r, int iSubdiv);
  128. void    vAddCircle(D3DVECTOR vCenter, float r, int iSubdiv);
  129.  
  130. // Prototypes de Objects - D3D
  131. void    vDeleteD3DObjects(void);
  132. int     iMakeD3DObj(void);
  133. int     iFindD3DObject(D3DVECTOR p, int iPrevious);
  134. BOOL    bMoveD3DObj(int iObject, D3DVECTOR vPos);
  135.  
  136. // Prototypes de d3denum.cpp
  137. HRESULT D3DEnum_SelectDefaultDevice(D3DEnum_DeviceInfo** ppDevice, DWORD dwFlags);
  138. HRESULT D3DEnum_UserChangeDevice(D3DEnum_DeviceInfo** ppDevice);
  139.  
  140. // Prototypes de triangulate.cpp
  141. void    fill(void);
  142.  
  143. // Prototypes de triangulator.cpp
  144. void    triangulate(char *triswitches, struct triangulateio *in, struct triangulateio *out, struct triangulateio *vorout);
  145.  
  146. // Prototypes de FontOutliner.cpp
  147. void    vAddTextOutline(void);
  148.  
  149. #ifdef _AMIGA_
  150. // Prototypes de asl.c
  151. int FSInit(void);
  152. int FSelect(char *Bouton, char *Fichier);
  153. void FSClose(void);
  154. int SMInit(void);
  155. int SMSelect(void);
  156. void SMClose(void);
  157.  
  158. // Prototypes de console.cpp
  159. BOOL InitConsole(HWND);
  160. void CloseConsole(void);
  161. void ConPutS(char *);
  162.  
  163. // Prototypes de amistuff.cpp spécifiques Amiga (les protos des fonctions Windows sont dans le fake windows.h)
  164. HGDIOBJ hAddImage(HWND hWnd, char *sName, int iX, int iY, int iWidth, int iHeight);
  165. void vRefreshImage(HWND hWnd, HGDIOBJ hObject);
  166. void vMoveImage(HWND hWnd, HGDIOBJ hObject, int iX, int iY);
  167. void vRemoveImage(HWND hWnd, HGDIOBJ hObject);
  168. void UnclipWindow(HWND);
  169. struct Region *ClipWindow(HWND, LONG, LONG, LONG, LONG);
  170.  
  171. // Prototypes de resload.cpp spécifiques Amiga (les protos des fonctions Windows sont dans le fake windows.h)
  172. BOOL DLGInit(char *sResFileName);
  173. void DLGClose(void);
  174.  
  175. // Prototype de CloseWindowSafely.cpp
  176. void CloseWindowSafely(struct Window *win);
  177.  
  178. // prototypes de ami-texture.cpp
  179. void vInitTextures(W3D_Context *hW3DC);
  180. void vCloseTextures(W3D_Context *hW3DC);
  181.  
  182. // prototypes de vDemo.cpp
  183. void vDemo(void);
  184. #endif
  185.